
*=============================================================================*
global wealthdon /* SET FILE PATH */
global projectdatafolder ${wealthdon}/data/projectdata
*=============================================================================*

* Data from Statistics Norway statistics series 12843, 14155

input muni	lv2013	lv2014	lv2015	lv2016	lv2017	lv2018	lv2019
0101	0	0	0	0	0	0	0
0104	0	0	0	0	0	0	0
0105	0	0	0	0	0	0	0
0106	0	0	0	0	0	0	0
0111	0	0	0	0	0	0	0
0118	0	0	0	0	0	0	0
0119	0	0	0	1	1	1	1
0121	0	0	0	0	1	1	1
0122	0	0	0	0	0	0	0
0123	0	0	0	0	0	0	0
0124	0	0	0	0	0	0	0
0125	0	0	0	0	1	1	1
0127	0	0	0	0	0	0	0
0128	0	0	0	0	0	0	0
0135	0	0	0	0	0	0	0
0136	0	0	0	0	0	0	0
0137	0	0	0	0	0	0	0
0138	0	0	0	0	1	1	1
0211	0	0	0	0	0	0	0
0213	0	0	0	0	0	0	0
0214	0	0	0	0	0	0	0
0215	0	0	0	0	0	0	0
0216	0	0	0	0	0	0	0
0217	0	0	0	0	0	0	0
0219	0	0	0	0	0	0	0
0220	0	0	0	0	0	0	0
0221	0	0	1	1	1	1	1
0226	0	0	0	0	1	1	1
0227	0	0	1	1	1	1	1
0228	0	0	0	0	0	0	0
0229	0	0	0	0	0	0	0
0230	0	0	0	0	0	0	0
0231	0	0	0	0	0	0	0
0233	0	0	1	1	1	1	1
0234	0	0	0	0	0	0	0
0235	0	0	0	0	0	0	0
0236	0	0	0	0	0	0	0
0237	0	0	0	0	0	0	0
0238	0	0	0	0	0	0	0
0239	0	0	0	0	0	1	1
0301	0	0	0	1	1	1	1
0402	0	0	0	0	0	0	0
0403	0	0	0	0	0	0	0
0412	0	0	0	0	0	0	0
0415	0	0	0	0	0	0	0
0417	0	0	0	0	0	0	0
0418	0	0	0	0	0	0	0
0419	0	0	0	0	0	0	0
0420	0	0	0	0	0	0	0
0423	0	0	0	0	0	0	0
0425	0	0	0	0	0	0	0
0426	0	0	0	0	0	0	0
0427	0	0	0	0	0	0	0
0428	0	0	0	0	0	0	0
0429	0	0	0	0	0	0	0
0430	0	0	1	1	1	1	1
0432	0	0	0	0	0	0	0
0434	0	0	0	0	0	0	0
0436	0	0	0	0	0	0	0
0437	0	0	0	0	0	0	0
0438	0	0	0	0	0	0	0
0439	0	0	0	0	0	0	0
0441	0	0	0	0	0	0	0
0501	0	0	0	0	0	0	0
0502	0	0	0	0	0	0	0
0511	0	0	0	0	0	0	0
0512	0	0	0	0	0	0	0
0513	0	0	0	0	0	0	0
0514	0	0	0	0	0	0	0
0515	0	0	0	0	0	0	0
0516	0	0	0	0	0	0	0
0517	0	0	1	1	1	1	1
0519	0	0	1	1	1	0	0
0520	0	0	0	0	0	0	0
0521	0	0	0	0	0	0	0
0522	0	0	0	0	0	0	0
0528	0	0	1	1	1	1	1
0529	0	0	1	1	1	1	1
0532	0	0	1	1	1	1	1
0533	0	0	0	0	0	0	0
0534	0	0	0	0	0	0	0
0536	0	0	0	0	0	0	0
0538	0	0	0	0	0	0	0
0540	0	0	0	0	0	0	0
0541	0	0	0	0	0	0	0
0542	0	0	0	0	0	0	0
0543	0	0	0	0	0	0	0
0544	0	0	0	0	0	0	0
0545	0	0	0	0	0	0	0
0602	0	0	0	0	0	0	0
0604	0	0	0	0	0	0	0
0605	0	0	0	0	0	0	0
0612	0	0	0	1	1	1	0
0615	0	0	0	0	0	0	0
0616	0	0	0	0	0	0	0
0617	0	0	0	0	0	0	0
0618	0	0	0	0	0	0	0
0619	0	0	0	0	0	0	0
0620	0	0	0	0	0	0	0
0621	0	0	0	0	0	0	0
0622	0	0	0	0	0	0	0
0623	0	0	0	0	0	0	0
0624	0	0	0	0	0	0	0
0625	0	0	0	0	0	0	0
0626	0	0	0	0	0	0	0
0627	0	0	0	0	0	0	0
0628	0	0	0	0	0	0	0
0631	0	0	0	0	0	0	0
0632	0	0	0	0	0	0	0
0633	0	0	0	0	0	0	0
0701	0	0	0	0	0	0	0
0702	0	0	0	0	0	-1	-1
0704	0	0	0	0	0	0	0
0706	0	0	0	0	-1	-1	-1
0709	0	0	0	0	0	-1	-1
0710	-1	-1	-1	-1	0	0	0
0711	0	0	0	0	0	0	0
0712	-1	-1	-1	-1	-1	0	0
0713	0	0	1	1	1	1	1
0714	0	0	0	0	0	-1	-1
0715	-1	-1	-1	-1	-1	0	0
0716	0	0	0	1	1	1	1
0719	0	0	0	0	-1	-1	-1
0720	0	0	0	0	-1	-1	-1
0722	0	0	0	0	0	-1	-1
0723	0	0	0	0	0	-1	-1
0728	0	0	0	0	0	-1	-1
0729	-1	-1	-1	-1	-1	0	0
0805	0	0	0	0	0	0	0
0806	0	0	1	0	0	0	0
0807	0	0	0	0	0	0	0
0811	0	0	1	1	1	1	1
0814	0	0	0	0	0	0	0
0815	0	0	0	0	0	0	0
0817	0	0	0	0	0	0	0
0819	0	0	0	0	0	0	0
0821	0	0	0	0	0	0	0
0822	0	0	0	0	0	0	0
0826	0	0	0	0	0	0	0
0827	0	0	0	0	0	0	0
0828	0	0	0	0	0	0	0
0829	0	0	0	0	0	0	0
0830	0	0	0	0	0	0	0
0831	0	0	0	0	0	0	0
0833	0	0	0	0	0	0	0
0834	0	0	0	0	0	0	0
0901	0	0	0	0	0	0	0
0904	0	0	0	0	0	0	0
0906	0	0	0	0	0	0	0
0911	0	0	0	0	0	0	0
0912	0	0	0	1	1	1	1
0914	0	0	0	0	1	1	1
0919	0	0	0	0	0	0	0
0926	0	0	0	0	0	0	0
0928	0	0	1	1	1	1	1
0929	0	0	0	0	0	0	0
0935	0	0	0	0	0	0	0
0937	0	0	0	0	0	0	0
0938	0	0	0	0	0	0	0
0940	0	0	0	0	0	0	0
0941	0	0	0	0	0	0	0
1001	0	0	0	0	0	0	0
1002	0	0	1	1	1	1	1
1003	0	0	0	0	0	0	0
1004	0	0	0	0	0	0	0
1014	0	0	0	0	0	0	0
1017	0	0	0	0	0	0	0
1018	0	0	0	0	0	0	0
1021	0	0	0	0	0	0	0
1026	0	0	0	0	0	0	0
1027	0	0	1	1	1	1	1
1029	0	0	0	0	1	1	1
1032	0	0	0	0	0	0	0
1034	0	0	0	0	0	0	0
1037	0	0	0	0	0	0	0
1046	0	0	0	0	0	0	0
1101	0	0	0	0	0	0	0
1102	0	0	0	0	0	0	0
1103	0	0	0	0	0	0	0
1106	0	0	1	1	1	1	1
1111	0	0	0	1	1	1	1
1112	0	0	1	1	1	1	1
1114	0	0	0	0	0	0	0
1119	0	0	0	0	0	0	0
1120	0	0	0	0	0	0	0
1121	0	0	0	0	0	0	0
1122	0	0	0	0	0	0	0
1124	0	0	0	0	0	0	0
1127	0	0	0	0	0	0	0
1129	0	0	0	0	0	0	0
1130	0	0	0	0	0	0	0
1133	0	0	0	0	0	0	0
1134	0	0	0	0	0	0	0
1135	0	0	0	0	0	0	0
1141	0	0	0	0	0	0	0
1142	0	0	0	0	0	0	0
1144	0	0	0	0	0	0	0
1145	0	0	0	0	0	0	0
1146	0	0	0	0	0	0	0
1149	0	0	1	1	1	1	1
1151	0	0	1	1	1	1	1
1160	0	0	0	0	0	0	0
1201	0	0	1	1	1	1	1
1211	0	0	1	1	1	1	1
1216	0	0	0	0	0	0	0
1219	0	0	0	0	0	0	0
1221	0	0	0	0	0	0	0
1222	0	0	0	0	0	0	0
1223	0	0	0	0	0	0	0
1224	0	0	0	0	0	0	0
1227	0	0	0	0	0	0	0
1228	0	0	0	0	0	0	0
1231	0	0	1	1	1	1	1
1232	0	0	0	0	0	0	0
1233	0	0	0	0	0	0	0
1234	0	0	0	0	0	0	0
1235	0	0	0	0	0	0	0
1238	0	0	0	0	0	0	0
1241	0	0	0	0	0	0	0
1242	0	0	1	1	1	1	1
1243	0	0	0	0	0	0	0
1244	0	0	0	0	0	0	0
1245	0	0	0	0	0	0	0
1246	0	0	0	0	0	0	0
1247	0	0	0	0	1	1	0
1251	0	0	0	0	0	0	0
1252	0	0	0	0	0	0	0
1253	0	0	0	0	1	1	1
1256	0	0	0	0	0	0	0
1259	0	0	0	0	0	0	0
1260	0	0	0	0	0	0	0
1263	0	0	0	0	0	0	0
1264	0	0	0	0	0	0	0
1265	0	0	0	0	0	0	0
1266	0	0	0	0	0	0	0
1401	0	0	0	0	0	0	0
1411	0	0	0	0	0	0	0
1412	0	0	1	1	1	1	1
1413	0	0	0	0	0	0	0
1416	0	0	0	0	0	0	0
1417	0	0	0	0	0	0	0
1418	0	0	1	0	0	0	0
1419	0	0	0	0	0	0	0
1420	0	0	1	1	1	1	1
1421	0	0	0	0	0	0	0
1422	0	0	0	0	0	0	0
1424	0	0	0	0	0	0	0
1426	0	0	0	0	0	1	1
1428	0	0	1	1	1	1	1
1429	0	0	0	0	0	0	0
1430	0	0	0	0	0	0	0
1431	0	0	0	0	0	0	0
1432	0	0	0	0	0	0	0
1433	0	0	0	0	0	0	0
1438	0	0	0	1	1	1	1
1439	0	0	0	0	0	0	0
1441	0	0	1	1	1	1	1
1443	0	0	1	1	1	1	1
1444	0	0	0	0	0	0	0
1445	0	0	0	0	0	0	0
1449	0	0	0	0	0	0	0
1502	0	0	0	0	0	0	0
1504	0	0	1	1	1	1	1
1505	0	0	0	0	0	0	1
1511	0	0	0	0	0	0	0
1514	0	0	0	0	0	0	0
1515	0	0	0	0	0	0	0
1516	0	0	0	0	0	1	1
1517	0	0	1	1	1	1	1
1519	0	0	1	1	1	1	1
1520	0	0	1	1	1	1	1
1523	0	0	0	0	0	0	0
1524	0	0	0	0	0	0	0
1525	0	0	0	0	0	0	0
1526	0	0	0	0	0	0	0
1528	0	0	1	1	1	1	1
1529	0	0	1	1	1	1	1
1531	0	0	0	0	0	0	0
1532	0	0	1	1	1	1	1
1534	0	0	0	0	0	0	0
1535	0	0	0	0	0	0	0
1539	0	0	0	0	0	0	0
1543	0	0	1	1	1	1	1
1545	0	0	0	0	0	0	0
1546	0	0	0	1	1	1	1
1547	0	0	0	0	0	0	0
1548	0	0	1	1	1	1	1
1551	0	0	0	0	0	1	1
1554	0	0	0	0	0	0	0
1557	0	0	0	0	0	0	0
1560	0	0	1	1	1	1	1
1563	0	0	0	0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1	-1	-1	-1	0	0
5051	-1	-1	-1	-1	-1	0	0
5052	-1	-1	-1	-1	-1	0	0
5053	-1	-1	-1	-1	-1	0	0
5054	-1	-1	-1	-1	-1	0	0
5061	-1	-1	-1	-1	-1	-1	0
1601	0	0	0	0	0	-1	-1
1612	0	0	0	0	0	-1	-1
1613	0	0	0	0	0	-1	-1
1617	0	0	0	0	0	-1	-1
1620	0	0	0	0	0	-1	-1
1621	0	0	0	0	0	-1	-1
1622	0	0	0	0	0	-1	-1
1624	0	0	0	0	0	-1	-1
1627	0	0	0	1	1	-1	-1
1630	0	0	0	0	0	-1	-1
1632	0	0	0	0	0	-1	-1
1633	0	0	0	0	0	-1	-1
1634	0	0	0	0	0	-1	-1
1635	0	0	1	1	1	-1	-1
1636	0	0	0	1	1	-1	-1
1638	0	0	0	0	0	-1	-1
1640	0	0	0	0	0	-1	-1
1644	0	0	0	0	0	-1	-1
1648	0	0	0	0	0	-1	-1
1653	0	0	0	0	0	-1	-1
1657	0	0	1	1	1	-1	-1
1662	0	0	0	0	0	-1	-1
1663	0	0	0	0	0	-1	-1
1664	0	0	0	0	0	-1	-1
1665	0	0	0	0	0	-1	-1
1702	0	0	0	0	0	-1	-1
1703	0	0	0	0	0	-1	-1
1711	0	0	0	0	0	-1	-1
1714	0	0	0	0	0	-1	-1
1717	0	0	1	1	1	-1	-1
1718	0	0	0	0	0	-1	-1
1719	0	0	0	0	0	-1	-1
1721	0	0	0	0	0	-1	-1
1724	0	0	0	0	0	-1	-1
1725	0	0	0	0	0	-1	-1
1736	0	0	0	0	0	-1	-1
1738	0	0	0	0	0	-1	-1
1739	0	0	0	0	0	-1	-1
1740	0	0	0	0	0	-1	-1
1742	0	0	0	0	0	-1	-1
1743	0	0	0	0	0	-1	-1
1744	0	0	0	0	0	-1	-1
1748	0	0	0	0	0	-1	-1
1749	0	0	0	0	0	-1	-1
1750	0	0	0	0	0	-1	-1
1751	0	0	0	0	0	-1	-1
1755	0	0	0	0	0	-1	-1
1756	0	0	0	0	0	-1	-1
1804	0	0	0	0	0	0	0
1805	0	0	0	0	0	0	0
1811	0	0	0	0	1	1	1
1812	0	0	1	1	1	1	1
1813	0	0	0	0	0	0	0
1815	0	0	0	0	0	0	0
1816	0	0	0	0	0	0	0
1818	0	0	0	0	0	0	0
1820	0	0	0	0	0	0	0
1822	0	0	0	0	0	0	0
1824	0	0	0	0	0	0	0
1825	0	0	0	0	0	0	0
1826	0	0	0	0	0	0	0
1827	0	0	1	1	1	0	0
1828	0	0	0	0	0	0	0
1832	0	0	0	0	0	0	0
1833	0	0	0	0	0	0	0
1834	0	0	0	0	0	0	0
1835	0	0	0	0	0	0	0
1836	0	0	0	0	0	0	0
1837	0	0	0	0	0	0	0
1838	0	0	0	0	0	0	0
1839	0	0	0	0	0	0	0
1840	0	0	0	0	0	0	0
1841	0	0	0	0	0	0	0
1845	0	0	0	0	0	0	0
1848	0	0	0	0	0	0	0
1849	0	0	1	0	0	0	0
1850	0	0	0	0	0	0	0
1851	0	0	0	0	0	0	0
1852	0	0	0	0	0	0	0
1853	0	0	0	0	0	0	0
1854	0	0	0	1	1	1	1
1856	0	0	0	0	0	0	0
1857	0	0	0	0	1	1	1
1859	0	0	0	0	0	0	0
1860	0	0	0	0	0	0	0
1865	0	0	0	0	0	0	0
1866	0	0	1	1	1	1	1
1867	0	0	0	0	0	0	0
1868	0	0	0	0	0	0	1
1870	0	0	0	0	0	0	0
1871	0	0	0	0	0	0	0
1874	0	0	1	1	1	1	1
1902	0	0	0	0	0	0	0
1903	0	0	1	1	1	1	1
1911	0	0	0	1	1	1	1
1913	0	0	0	0	0	0	0
1917	0	0	0	0	0	0	0
1919	0	0	0	0	0	0	0
1920	0	0	0	0	0	0	0
1922	0	0	0	0	0	0	0
1923	0	0	0	0	0	0	0
1924	0	0	0	0	0	0	0
1925	0	0	0	0	0	0	0
1926	0	0	0	0	0	0	0
1927	0	0	0	0	0	0	0
1928	0	0	0	0	0	0	0
1929	0	0	0	0	0	0	0
1931	0	0	0	0	0	0	0
1933	0	0	0	0	0	0	0
1936	0	0	0	0	0	0	0
1938	0	0	0	0	0	0	0
1939	0	0	0	0	0	0	0
1940	0	0	0	0	0	0	0
1941	0	0	0	0	0	0	0
1942	0	0	0	0	0	0	0
1943	0	0	0	0	0	0	0
2002	0	0	0	0	0	0	0
2003	0	0	0	0	0	0	0
2004	0	0	1	1	1	1	1
2011	0	0	0	0	0	0	0
2012	0	0	0	0	0	0	0
2014	0	0	0	0	0	0	1
2015	0	0	0	0	0	0	0
2017	0	0	0	0	0	0	0
2018	0	0	0	0	0	0	0
2019	0	0	0	0	0	0	0
2020	0	0	0	0	0	0	0
2021	0	0	0	0	0	0	0
2022	0	0	0	0	0	0	0
2023	0	0	0	0	0	0	0
2024	0	0	0	0	0	1	1
2025	0	0	0	0	0	0	0
2027	0	0	0	0	0	0	0
2028	0	0	0	1	1	1	1
2030	0	0	0	0	0	0	0
end

reshape long lv, i(muni) j(year)

ren lv tvh_proptax
label var tvh_proptax "Dummy for whether TVH used for muni prop taxes"
replace tvh_proptax = 0 if tvh_proptax==-1

bysort muni: egen tvh_proptax_ever = max(tvh_proptax)

save ${projectdatafolder}/muni_lignverdi_proptax, replace
